﻿@{
    Layout = null;
    var i = Model.PageIndex * Model.PageSize;
}
@using Domain.Model.Enums;
@model Domain.PageInfo<Domain.Model.Bonus>

@foreach (var item in Model.EntityArray)
{
    <tr>
        <td>@(++i)</td>
        <td>@item.No</td>
        <td>@item.BeginTime</td>
        <td>@item.EndTime</td>
        <td>@item.State.GetDisplay()</td>
        <td>@item.SettlementType.GetDisplay()</td>
        <td>@item.Settlementer</td>
        <td>

            <button class="btn btn-small" onclick="SettlementState('@item.ID', '@item.State.GetDisplay()')" >结算</button>
            |
           <button class="btn btn-small" onclick="SettlementGrant('@item.ID', '@item.State.GetDisplay()')" >发放</button>
            |
             @Html.ActionLink("奖金", "BonusDetail", new { id = @item.No }, new { @class = "btn btn-small" })

               <button class="btn btn-small" onclick="BonusDel('@item.ID')" >删除</button>
        </td>
    </tr>
}

